﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Advanced_SendCallback_Server
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void leetSocket1_OnReceiveCompletedDataEVENT(object value, byte[] bArray)
        {
            byte[] b = (byte[])value;

            MessageBox.Show("Server: I received a byte array with length: " + b.Length.ToString() + " (" + (b.Length / (1024*1024)).ToString() + "MB)");
        }
    }
}
